package rd.hardcore.ui.config 
{
	import aze.motion.easing.Quadratic;
	import aze.motion.eaze;
	import flash.events.MouseEvent;
	/**
	 * ...
	 * @author Romain Prache
	 */
	public class ConfigPanelBar extends ConfigPanelBar_FC
	{
		
		/* VAR */
		
		public function ConfigPanelBar() 
		{
			buttonMode = true;
			mouseChildren = false;

			addEventListener(MouseEvent.MOUSE_OVER, handleOver);
			addEventListener(MouseEvent.MOUSE_OUT, 	handleOut);
		}
		
		private function handleOver(e:MouseEvent):void 
		{
			eaze(this).to(.4, { alpha:.7 } );
		}
		
		private function handleOut(e:MouseEvent):void 
		{
			eaze(this).to(.4, { alpha:1 } );
		}
		
		public function open() : void
		{
			eaze(fl).to(.3, { rotation:180 } ).easing(Quadratic.easeOut);
		}
		
		public function close() : void
		{
			eaze(fl).to(.3, { rotation:0 } ).easing(Quadratic.easeIn);
		}
		
	}

}